<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>编辑软件</title>
<style type="text/css">
h1 {
	color: #494949;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.1em;
}

label {
	color: #006600;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 120%;
}
label.pure {
	color:#111111;
	font-size:12px;
}
input {
	font-size: 12px;
	margin-right: 3px;
}

span.pl {
	color: #666666;
	font-size: 12px;
	line-height: 150%;
}

ul.errorMessage,ul.errorMessage li {
	display: inline;
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	color: #FF3300;
}
#wrapper {
	margin:0 auto;
	width:950px;
}
a {
	text-decoration:none;
	color:#336699;
}
a:hover {
	text-decoration:underline;
}
</style>
<s:head />
</head>
<body>
<div id="wrapper">
<h1>编辑软件</h1>
<s:form action="saveapp">
<s:hidden name="software.id" />
	<label for="saveapp_software_name">软件名称：</label>
	<br />
	<s:textfield name="software.name" maxlength="18"/>
	<s:fielderror>
		<s:param value="%{'software.name'}" />
	</s:fielderror>
	<br />
	<br />

	<label for="saveapp_software_description">软件描述：</label>
	<br />
	<s:textarea name="software.description" cols="40" rows="6"/>
	<s:fielderror>
		<s:param value="%{'software.description'}" />
	</s:fielderror>
	<br />
	<br />
	
	<label for="saveapp_software_pricingStrategyType">计费模式：</label>
	<s:if test="software.pricingStrategyType==\"T\"">按时间<s:hidden name="software.pricingStrategyType" /></s:if>
	<s:elseif test="software.pricingStrategyType==\"P\"">按功能<s:hidden name="software.pricingStrategyType" /></s:elseif>
	<s:else>
	<span class="pl">确定计费模式后不可再更改</span>
	<br />
	<s:radio name="software.pricingStrategyType" list="#{'T':'按时间','P':'按功能'}" />
	<s:fielderror>
		<s:param value="%{'software.pricingStrategyType'}" />
	</s:fielderror>
	</s:else>
	<br />
	<br />

	<s:submit value="保存所做的修改" />
	<input type="button" value="取消" onclick="window.location.href='<s:url action="applist"/>';" />
</s:form></div>
</body>
</html>